logprint:   
    
    ;bp+8   = param3 print to which line
    ;bp+6   = param2 str len
    ;bp+4   = param1 str addr
    ;bp+2   = ret addr
    ;bp     = last stack bp

    push bp
    mov bp,sp
    ; mov si,[bp+4]
    ; mov di,[bp-10]
    ; mov cx,[bp+6]
    ; cld
    ; rep movsd

    mov ax,[bp+8]
    mov dh,al       ;游标行列号
    mov dl,0x00

    mov ax,ds
    mov es,ax       ;es:bp字符串内存地址

    mov ah,0x13     ;打印
    mov al,0x01     ;写入模式
    mov cx,[bp+6]   ;字符串长度
    
    push bp
    mov bp,[bp+4]   ;es:bp字符串内存地址
    mov bh,0x00     ;页码
    mov bl,0x07     ;颜色属性
    int 0x10
    pop bp

    mov sp,bp
    pop bp
    ret
    